<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function test(person) {
        person.age=26; //p1.age=26 p1.name=bbb
        person.name='ccc';
        person={
            name:'aaa',
            age:30
        };
        return person;
    }
    const  p1={
        name:'bbb',
        age:25
    };
    const p2=test(p1);
    console.log(p1);
    console.log(p2);

</script>
</body>
</html>